{% extends "./default.html" %}
{% import "./public/adsPannel.html" as adsPannel %}
{% block content %}
<article>
  <div class="pics">
    <ul>
      {% news key="new_post","pageSize"=3 %}
      {% for item in new_post %}
      <li><i><a href="{{item.url}}"><img src="{{item.sImg}}"></a></i><span>{{item.title}}</span></li>
      {% endfor %}
    </ul>
  </div>
  <div class="blank"></div>
  <div class="leftbox">
    <div class="tuijian">
      <h2 class="hometitle">
        <span>
          {% tags pageSize=3 %}
          {% for tagItem in tags %}
          <a href="/tag/{{tagItem.name}}">{{tagItem.name}}</a>
          {% endfor %}
        </span>特别推荐
      </h2>
      <ul>
        {% recommend pageSize=6 %}
        {% for item in recommend %}
        <li>
          <div class="tpic"><img src="{{item.sImg}}"></div>
          <b>{{item.title}}</b><span>{{item.discription}}</span><a href="{{item.url}}" class="readmore">阅读原文</a>
        </li>
        {% endfor %}
      </ul>
    </div>
    <div class="newblogs">
      <h2 class="hometitle">最新文章</h2>
      <ul id="list">
        {% include './public/itemListTemp.html' %}
      </ul>

    </div>
  </div>
  <div class="rightbox">
    {% include './public/sidebar.html' %}
  </div>
</article>
{% endblock %}